package com.xuzao.developer.utils;

/**
 * 封装dwz框架的返回值
 * User: xj
 * Date: 12-3-30
 * Time: 下午9:10
 * To change this template use File | Settings | File Templates.
 */
public class DWZMap {

    /* 返回状态值定义 */
    public static final String CODE_OK = "200"; //成功

    public static final String CODE_WARN = "250";//警告

    public static final String CODE_ERROR = "300";  //错误

    public static final String CODE_TIMEOUT = "301"; //超时


    /* 返回动作定义 */
    public static final String CALLBACK_CLOSE = "closeCurrent"; //关闭当前tab或dialog

    public static final String CALLBACK_FORWARD = "forward"; //返回后页面跳转，需要设置forwardUrl的值

    private String statusCode = ""; //返回值，用于表示操作结果
    private boolean hover = false;// 返回值，用于表示信息结果的停留

    private String message = "";  //返回提示信息

    private String navTabId = ""; //把指定navTab页面重新载入。注意navTabId不能是当前navTab页面的

    private String rel = ""; //指向局部对象
    private String dialogId = "";//指定局部对象刷新后再刷新dialog,用于双表单需先后提交的情况

    private String callbackType = ""; //返回后的动作类型，关闭窗口或页面跳转，如果表单提交只提示操作是否成功, 就可以不指定回调函数

    private String forwardUrl = ""; //页面跳转的url

    private String title = "";//是否要设置titile

    private String forwardRel = ""; //页面跳转Rel

    private String smallPrefix = "";//小图前缀

    private String originalPrefix = "";//原图前缀

    private String fileName = "";     //附件上传文件名称的值

    private String attachmentPath = "";    //附件上传文件绝对路径的值

    private String attachmentSize = "";    //附件上传文件大小的值

    private String fileNameSource = "";        //附件上传文件名称的源
    private String attachmentPathSource = "";       //附件上传文件绝对路径的源
    private String attachmentSizeSource = "";       //附件上传文件大小的源
    private Integer attachmentLimit = 2 * 1024 * 1024;             //附件上传默认为2M
    private String form = "";//业务带回查询from的指向信息navtab 例子：#pagerForm
    private String divform = "";//业务带回查询from的指向信息dialog 例子：#pagerForm
    private String closeRel = "";      //需要关闭的navTab页面的tabid
    private String dataLock = ""; //订单锁专用
    private String dataLocks = ""; //批量订单锁专用
    private String sysUserName = ""; //订单所使用当前用户名
    private boolean isClose = false;   //判断打开新的navtab是否需要关闭当前navtab
    private String bringBackId;         //查找带回指定的id类字段名
    private String bringBackName;      //查找带回指定的name类字段名
    private String closeDialogRel;  //需要关闭的弹出层dialogid
    private String dialogReloadUrl;    //专门给dialogAjaxDone4Reload使用 dialog页面刷新请求 和dilaogId搭配
    private String navTabReloadUrl;    //专门给dialogAjaxDone4Reload使用 navtab页面刷新请求 和navTabId搭配
    private String dialogTitle;         //专门给dialogAjaxDone4Reload使用 dialog页面刷新请求 和dilaogId搭配
    private Integer width;                //专门给dialogAjaxDone4Reload使用 dialog页面刷新请求 和dilaogId搭配
    private Integer height;              //专门给dialogAjaxDone4Reload使用 dialog页面刷新请求 和dilaogId搭配
    private String otherRel;
    private boolean closeCurrent = false;   //当前操作是否需要刷新页面
    private Integer goodsId;//宝贝分类专用
    private boolean drawable;//是否拖拽

    public boolean isDrawable() {
        return drawable;
    }

    public void setDrawable(boolean drawable) {
        this.drawable = drawable;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public boolean isCloseCurrent() {
        return closeCurrent;
    }

    public void setCloseCurrent(boolean closeCurrent) {
        this.closeCurrent = closeCurrent;
    }

    public String getOtherRel() {
        return otherRel;
    }

    public void setOtherRel(String otherRel) {
        this.otherRel = otherRel;
    }

    public String getDialogTitle() {
        return dialogTitle;
    }

    public void setDialogTitle(String dialogTitle) {
        this.dialogTitle = dialogTitle;
    }

    public Integer getWidth() {
        return width;
    }

    public void setWidth(Integer width) {
        this.width = width;
    }

    public Integer getHeight() {
        return height;
    }

    public void setHeight(Integer height) {
        this.height = height;
    }

    public String getDialogReloadUrl() {
        return dialogReloadUrl;
    }

    public void setDialogReloadUrl(String dialogReloadUrl) {
        this.dialogReloadUrl = dialogReloadUrl;
    }

    public String getNavTabReloadUrl() {
        return navTabReloadUrl;
    }

    public void setNavTabReloadUrl(String navTabReloadUrl) {
        this.navTabReloadUrl = navTabReloadUrl;
    }

    public Integer getAttachmentLimit() {
        return attachmentLimit;
    }

    public void setAttachmentLimit(Integer attachmentLimit) {
        this.attachmentLimit = attachmentLimit;
    }

    public String getDialogId() {
        return dialogId;
    }

    public void setDialogId(String dialogId) {
        this.dialogId = dialogId;
    }

    public boolean isHover() {
        return hover;
    }

    public void setHover(boolean hover) {
        this.hover = hover;
    }

    public String getDivform() {
        return divform;
    }

    public void setDivform(String divform) {
        this.divform = divform;
    }

    public String getCloseDialogRel() {
        return closeDialogRel;
    }

    public void setCloseDialogRel(String closeDialogRel) {
        this.closeDialogRel = closeDialogRel;
    }

    public String getDataLocks() {
        return dataLocks;
    }

    public void setDataLocks(String dataLocks) {
        this.dataLocks = dataLocks;
    }

    public String getSysUserName() {
        return sysUserName;
    }

    public void setSysUserName(String sysUserName) {
        this.sysUserName = sysUserName;
    }

    public String getDataLock() {
        return dataLock;
    }

    public void setDataLock(String dataLock) {
        this.dataLock = dataLock;
    }

    public String getCloseRel() {
        return closeRel;
    }

    public void setCloseRel(String closeRel) {
        this.closeRel = closeRel;
    }

    public String getForm() {
        return form;
    }

    public void setForm(String form) {
        this.form = form;
    }

    public boolean getIsClose() {
        return isClose;
    }

    public void setIsClose(boolean close) {
        isClose = close;
    }

    public String getBringBackId() {
        return bringBackId;
    }

    public void setBringBackId(String bringBackId) {
        this.bringBackId = bringBackId;
    }

    public String getBringBackName() {
        return bringBackName;
    }

    public void setBringBackName(String bringBackName) {
        this.bringBackName = bringBackName;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getForwardRel() {
        return forwardRel;
    }

    public void setForwardRel(String forwardRel) {
        this.forwardRel = forwardRel;
    }

    public String getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(String statusCode) {
        this.statusCode = statusCode;
    }


    public String getFileNameSource() {
        return fileNameSource;
    }

    public void setFileNameSource(String fileNameSource) {
        this.fileNameSource = fileNameSource;
    }

    public String getAttachmentPathSource() {
        return attachmentPathSource;
    }

    public void setAttachmentPathSource(String attachmentPathSource) {
        this.attachmentPathSource = attachmentPathSource;
    }

    public String getAttachmentSizeSource() {
        return attachmentSizeSource;
    }

    public void setAttachmentSizeSource(String attachmentSizeSource) {
        this.attachmentSizeSource = attachmentSizeSource;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getNavTabId() {
        return navTabId;
    }

    public void setNavTabId(String navTabId) {
        this.navTabId = navTabId;
    }

    public String getRel() {
        return rel;
    }

    public void setRel(String rel) {
        this.rel = rel;
    }

    public String getCallbackType() {
        return callbackType;
    }

    public void setCallbackType(String callbackType) {
        this.callbackType = callbackType;
    }

    public String getForwardUrl() {
        return forwardUrl;
    }

    public void setForwardUrl(String forwardUrl) {
        this.forwardUrl = forwardUrl;
    }


    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getAttachmentPath() {
        return attachmentPath;
    }

    public void setAttachmentPath(String attachmentPath) {
        this.attachmentPath = attachmentPath;
    }

    public String getAttachmentSize() {
        return attachmentSize;
    }

    public void setAttachmentSize(String attachmentSize) {
        this.attachmentSize = attachmentSize;
    }

    public String getSmallPrefix() {
        return smallPrefix;
    }

    public void setSmallPrefix(String smallPrefix) {
        this.smallPrefix = smallPrefix;
    }

    public String getOriginalPrefix() {
        return originalPrefix;
    }

    public void setOriginalPrefix(String originalPrefix) {
        this.originalPrefix = originalPrefix;
    }
}
